package com.atjinggu.jinggumail.cart.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author jingming
 * @Type CartItem.java
 * @Desc
 * @date 2021/3/5 11:27
 */
@Data
public class CartItem {
    private String skuId;
    private Boolean check = true;
    private String image;
    private List<String> saleAttr;
    private String title;
    private BigDecimal price;
    private BigDecimal totalPrice;
    private Integer count;



    public BigDecimal getTotalPrice() {
        BigDecimal multiply = this.price.multiply(new BigDecimal(this.count + ""));
        return multiply;
    }

}